package cn.xianyang.mapper;

import cn.xianyang.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    List<Long> hasTicket(@Param("uid")Long uid, @Param("id") Long id);

    User findById(Long uid);

    void add(User user);

    void buyTickets(@Param("number")Long number, @Param("id") Long id, @Param("uid") Long uid);

    void update(@Param("totalPrice")Double totalPrice,@Param("uid") Long uid);

    void watch(@Param("uid")Long uid,@Param("id") Long id);

    void giveTickets(@Param("uid")Long uid,@Param("id") Long id);

}